public class 游戏 {
    private String name;
    private double hp;
    private double attack;
    游戏(String name,double hp,double attack){
        this.hp=hp;
        this.attack=attack;
        this.name=name;
    }
    public void attakc1(游戏 a){
        a.hp -= attack;
        System.out.println(a.hp);
    }
    public static void main(String[] args) {
        游戏 a = new 游戏("a",11,10);
        游戏 b = new 游戏("b",2,5);
        a.attakc1(b);
    }
}
